//
//  MPFCusNaviVC.m
//  MPTCustomUILibrary_Example
//
//  Created by LG on 2018/1/7.
//  Copyright © 2018年 jxzjxz. All rights reserved.
//

#import "MPFCusNaviVC.h"
#import <UIViewController+Example.h>

@interface MPFCusNaviVC ()

@end

@implementation MPFCusNaviVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNavigationTitle_example:@"Dispose"];
    MPFNavigationItem *item = [MPFNavigationItem actionWithContent:@"返回" info:nil style:MPFNavigationItemStyleText handler:^(NSDictionary *info) {
        
    }];
    MPFNavigationItem *item2 = [MPFNavigationItem actionWithContent:@"返回" info:nil style:MPFNavigationItemStyleText handler:^(NSDictionary *info) {
        
    }];
    MPFNavigationItem *item3 = [MPFNavigationItem actionWithContent:@"返回" info:nil style:MPFNavigationItemStyleText handler:^(NSDictionary *info) {
        
    }];
    MPFNavigationItem *item6 = [MPFNavigationItem actionWithContent:@"返回" info:nil style:MPFNavigationItemStyleText handler:^(NSDictionary *info) {
        
    }];
    MPFNavigationItem *item4 = [MPFNavigationItem actionWithContent:@"返回时时处处" info:nil style:MPFNavigationItemStyleText handler:^(NSDictionary *info) {
        
    }];
    MPFNavigationItem *item5 = [MPFNavigationItem actionWithContent:@"返回" info:nil style:MPFNavigationItemStyleText handler:^(NSDictionary *info) {
        
    }];
    
    [self addNavigationBarViewWithLeftButton_example:@[item,item2,item3]];
    [self addNavigationBarViewWithRightButton_example:@[item4]];
}
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    self.navigationController.navigationBarHidden = YES;
}


- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];
    self.navigationController.navigationBarHidden = NO;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
